import { coverGlobal } from '@swda/utils'

function Window_GameEnd() {
    this.initialize.apply(this, arguments);
}

Window_GameEnd.prototype = Object.create(SWDA_Window_Command_4Arrows.prototype);
Window_GameEnd.prototype.constructor = Window_GameEnd;

Window_GameEnd.prototype.initialize = function() {
    SWDA_Window_Command_4Arrows.prototype.initialize.call(this, 0, 0);
    this.createButtons('MenuButton_YN',640 , 620);
    this.select(1);
    //this.updatePlacement();
    //this.openness = 0;
    //this.open();
};

Window_GameEnd.prototype.windowWidth = function() {
    return 240;
};

Window_GameEnd.prototype.updatePlacement = function() {
    this.x = (Graphics.boxWidth - this.width) / 2;
    this.y = (Graphics.boxHeight - this.height) / 2;
};

Window_GameEnd.prototype.makeCommandList = function() {
    this.addCommand('', '', false);
    this.addCommand(TextManager.toTitle, 'toTitle');
    this.addCommand('', '', false);
    this.addCommand(TextManager.cancel,  'cancel');
};

coverGlobal('Window_GameEnd', Window_GameEnd)